package com.albaba.designpattern.builder.text_001.builder;

import com.albaba.designpattern.builder.text_001.entity.Bike;

/**
 * @author zx
 * @version 1.0
 * @description 哈罗单车建造者
 * @date 2025/2/19 20:36
 */
public class HelloBikeBuilder extends Builder{
    @Override
    public void buildFrame() {
        System.out.println("哈罗单车组装车架");
        mBike.setFrame("碳纤维车架");
    }

    @Override
    public void buildSeat() {
        System.out.println("哈罗单车组装车座");
        mBike.setSeat("橡胶车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
